How to enable or disable SUICheckBox masking by script using Java
When SUICheckBox is unchecked
In your Java class, do the following:
public class YourClass extends Component {
// boolean to control activation of SUICheckBox's SUIMask
public boolean value; // select in the properties the value (true or false)
// creates a new SUICheckBox, @AutoWired selects the component from this object
@AutoWired
private SUICheckBox checkBox;
@Override
public void start() {
}
@Override
public void repeat() {
// sets the SUIMask activation of the SUICheckBox according to the value of the boolean (true or false) "value"
checkBox.setUncheckedIgnoreMask(value);
}
}
When SUICheckBox is checked
In your Java class, do the following:
public class YourClass extends Component {
// boolean to control activation of SUICheckBox's SUIMask
public boolean value; // select in the properties the value (true or false)
// creates a new SUICheckBox, @AutoWired selects the component from this object
@AutoWired
private SUICheckBox checkBox;
public void start() {
}
public void repeat() {
// sets the SUIMask activation of the SUICheckBox according to the value of the boolean (true or false) "value"
checkBox.setCheckedIgnoreMask(value);
}
}